SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56634: Optimization fails with "ERROR: TKTException code = 6 (Access violation)" in SAS® Markdown Optimization

DetailsHotfixAboutRate It

In SAS® Markdown Optimization, optimization/evaluation might fail with error details similar to the following in the MerchIntelGridSvr log file:

2015-09-22 13:05:39,022 [Thread-57] DEBUG - 20150922:13.05.35.38: mdo_uniform_time-mdo_ut_opt_search: Uniform Timing plan obtained by SEARCH opt. algorithm
2015-09-22 13:05:39,022 [Thread-57] DEBUG - 20150922:13.05.38.93: Error encountered while processing mdo_plan_sk=XXXXXX
2015-09-22 13:05:39,022 [Thread-57] DEBUG - 20150922:13.05.38.93: 
2015-09-22 13:05:39,022 [Thread-57] DEBUG - ERROR: TKTException code = 6 (Access violation)
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/di/src/tkmi_exception.c:124
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #4  0x00002aaaabc490ec in tkmi_exception_handler (thread=0x5874, 
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     ctxt=0x4837c25c, code=TKTE_UnknownException)
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/di/src/tkmi_exception.c:88
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #5  0x00002b7fa4cbf116 in bktExcept ()
2015-09-22 13:05:39,022 [Thread-57] DEBUG -    from /users/sas/sas93_RO_Only/SASFoundation/9.3/sasexe/tkmk.so
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #6  0x00002b7fa4cc211b in bkt_segv ()
2015-09-22 13:05:39,022 [Thread-57] DEBUG -    from /users/sas/sas93_RO_Only/SASFoundation/9.3/sasexe/tkmk.so
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #7  0x00002b7fa4cbf6e4 in bkt_signal_handler ()
2015-09-22 13:05:39,022 [Thread-57] DEBUG -    from /users/sas/sas93_RO_Only/SASFoundation/9.3/sasexe/tkmk.so
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #8  <signal handler called>
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #9  0x00002aaaabe3a0cd in update_utsolswithinfeas (id=600, 
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     mdoptr=0x2aaab46c7930) at /sas/dev/mva-f4ro52/dipcl/src/mdo_opt_main.c:98
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #10 0x00002aaaabe34fd0 in mdo_plan_opt_eval (this=0xc02000000258, 
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     id=46912659814704) at /sas/dev/mva-f4ro52/dipcl/src/mdo_opt_main.c:203
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #11 0x00002aaaabe122f9 in mdo_plan_parallel_opt_UTsch (this=0xc02000000258, 
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     batch_opt_size=-1267959504)
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     at /sas
2015-09-22 13:05:39,022 [Thread-57] DEBUG - 20150922:13.05.38.93: /dev/mva-f4ro52/dipcl/src/mdo_plan.c:1175
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #12 0x00002aaaabe0c763 in get_RawSols_UT (plan=0xc02000000258, 
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     batch_opt_size=-1267959504)
2015-09-22 13:05:39,022 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/dipcl/src/mdo_ut_opt_search.c:1122
2015-09-22 13:05:39,022 [Thread-57] DEBUG - #13 0x00002aaaabe0b9ed in mdo_ut_opt_search (plan=0xc02000000258, 
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     batch_opt_size=-1267959504)
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/dipcl/src/mdo_ut_opt_search.c:1612
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #14 0x00002aaaabe068b2 in mdo_uniform_time (plan=0xc02000000258, 
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     batch_opt_size=-1267959504)
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/dipcl/src/mdo_uniform_time.c:78
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #15 0x00002aaaabe0ef6a in mdo_plan_run (mdo_srvc=0xc02000000258, 
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     this=0x2aaab46c7930, batch_opt_size=-1266316688)
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/dipcl/src/mdo_plan.c:445
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #16 0x00002aaaabdf16e8 in mdo_service_opt (context=0x2aaab41b57e0)
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/dipcl/src/mdo_service.c:1093
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #17 0x00002aaaabc34e68 in logic_fn (ctxt=0x2aaaace05650, req=0x2aaab42c2cf0, 
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     thread=0x2b7fa4fd30b0, cb=0x2aaaab87eb28)
2015-09-22 13:05:39,023 [Thread-57] DEBUG -     at /sas/dev/mva-f4ro52/di/src/job_manager.c:1281
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #18 0x00002aaaab07bd0b in basicPudd
2015-09-22 13:05:39,023 [Thread-57] DEBUG - 20150922:13.05.38.93: leMain ()
2015-09-22 13:05:39,023 [Thread-57] DEBUG -    from /users/sas/sas93_RO_Only/SASFoundation/9.3/sasexe/tkepdl.so
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #19 0x00002b7fa4cbd926 in sktMain ()
2015-09-22 13:05:39,023 [Thread-57] DEBUG -    from /users/sas/sas93_RO_Only/SASFoundation/9.3/sasexe/tkmk.so
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #20 0x00002b7fa4cbef7b in bktMain ()
2015-09-22 13:05:39,023 [Thread-57] DEBUG -    from /users/sas/sas93_RO_Only/SASFoundation/9.3/sasexe/tkmk.so
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #21 0x0000003433a0673d in start_thread () from /lib64/libpthread.so.0
2015-09-22 13:05:39,023 [Thread-57] DEBUG - #22 0x00000034332d44bd in clone () from /lib64/libc.so.6

These exception details indicate that the uniform timing product or location level is set lower in your hierarchy than the uniform pricing product or location level in the hierarchy. In general, the validations that exist in the SAS® Merchandise Intelligence Client do not allow markdown plans to be created with invalid optimization settings. However, invalid optimization settings can be created when the following conditions occur:

  • The administrator has disabled editing of the uniform timing level by the plan creators.
  • A plan creator sets the uniform pricing level above the default uniform timing level.

The workaround is to adjust the uniform pricing, inventory pooling, and uniform timing settings to ensure that the uniform timing levels are at or above the uniform pricing levels.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Markdown OptimizationMicrosoft® Windows® for x645.2_M45.49.3 TS1M29.4 TS1M3
Linux for x645.2_M45.49.3 TS1M29.4 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.